Repository navigation
feat(context): lock the SSH identity a repo pushes with - #37
Merged
Merged
Conversation
[context.ssh] joins the per-project context lock: declare identity (path), fingerprint (SHA256, machine-portable), or host_alias (~/.ssh/config Host). kit context check reads the effective identity — per-repo core.sshCommand -i override wins, else resolves the remote host via ssh -G — derives the fingerprint via ssh-keygen -lf, and verifies the match. Wrong-account key = mismatch, not a silent pass (the SSH analog of the git-host remote lock). Pure parsers unit-tested; live ssh -G read smoke-tests on a real machine.
|
✅ Docker image built successfully
|
|
✅ Docker image built successfully
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The "mainly lock" ask: a per-project SSH-identity context-lock, slotting next to the github/gitlab/bitbucket remote locks. Catches pushing/deploying a repo with the wrong account's SSH key — your multi-account reality.
What
[context.ssh]— declare any of:identity(IdentityFile path,~expanded for comparison),fingerprint(SHA256:…, machine-portable, most robust), orhost_alias(the~/.ssh/configHostthe remote uses).kit context checkreads the repo's effective identity:git config core.sshCommand-i <path>override wins, elsessh -G <remote-host>→ first configuredidentityfile,ssh-keygen -lf, host token from the origin remote.(tool, field)model.Verify
npm run build && npm test→ build clean, 1340 tests, 0 fail (+3: SSH-identity parsers + fingerprint/host-alias lock ok/mismatch/unknown). Pure parsers fixture-tested; livessh -Gread smoke-tests on a real machine.Merge order: rebase after the 1.13.0 release PR (#36) — both touch CHANGELOG
[Unreleased](trivial conflict, keep both). This is next-release (1.14.0) material.🤖 Generated with Claude Code